/*
 * Group 3, User Interface Programming II (vt11)
 * Pooya | Flora | Monica | Can
 */
package vical;

import vical.controller.PreferenceController;
import vical.model.Internationalization;
import vical.view.MainWindow;

/**
 * The Main entrance of the application, control the startup logic.
 * 
 * @author Can
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        if (PreferenceController.loadPreference() != 0) {
            System.exit(-1);
        }
        if (Internationalization.loadLanguage(PreferenceController.getLocale()) != 0) {
            System.exit(-1);
        }
        MainWindow mainWindow = new MainWindow();
        mainWindow.setVisible(true);
    }
}
